import 'package:flutter/material.dart';
import 'l10n/intl_messages.dart';

class SettingPage extends StatelessWidget {
  const SettingPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final S s = S.of(context);
    return Scaffold(
      appBar: AppBar(
        title: Text(s.settings),
      ),
      body: ListView(
        children: [
          ListTile(
            leading: const Icon(Icons.help_outline),
            title: Text(s.instructions),
            onTap: () {
              // TODO: 显示使用说明
              print('Instructions');
            },
          ),
          ListTile(
            leading: const Icon(Icons.feedback),
            title: Text(s.feedback),
            onTap: () {
              // TODO: 实现意见反馈功能
              print('Feedback');
            },
          ),
          ListTile(
            leading: const Icon(Icons.privacy_tip),
            title: Text(s.privacyPolicy),
            onTap: () {
              // TODO: 显示隐私政策
              print('Privacy Policy');
            },
          ),
          ListTile(
            leading: const Icon(Icons.description),
            title: Text(s.userAgreement),
            onTap: () {
              // TODO: 显示用户协议
              print('User Agreement');
            },
          ),
          ListTile(
            leading: const Icon(Icons.update),
            title: Text(s.checkForUpdates),
            onTap: () {
              // TODO: 实现检查更新功能
              print('Check for Updates');
            },
          ),
        ],
      ),
    );
  }
}
